<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<style>
    /* zheshu-enter  zheshu-enter-active zheshu-enter-to */

    .box{
        width: 400px;
        margin: 50px auto;
    }
    .mingming{
        font-size: 50px;
        color: red;
    }
    .zhehsu-enter,.zheshu-enter-to{
        transition: opacity 5s;
    }
    .zheshu-enter-active{
        animation: anim 5s;
    }
    @keyframes anim {
        0%{
            transform: translateY(0px) skewX(0deg);
        }
        50%{
            transform: translateY(100px) skewX(30deg);
        }
        100%{
            transform: translateY(100px) skewX(60deg);
        }
    }
</style>
<script src="./js/vue.js"></script>
<body>
    <div class="box">
        <button @click="show=!show">切换</button>
        <transition name="zheshu">
            <h1 class="mingming" v-show="show">于明洋跳一跳</h1>
        </transition>
    </div>
    <script>
        const vm = new Vue({
            el:'.box',
            data:{
                show:true
            }
        })
    </script>
</body>
</html>